//this module is scale for compatible
//此模块用于解决屏幕大小不一致引起的样式兼容问题
function a(){
	this.name='scale'
}
a.scale=function(){
	var a=window.innerHeight/550,b;
	if(a>1){
		a=1+(a-1)/3;
	}else{
		a=1-(1-a)*2/3;
	}
	var title;
	if(a>1){
		title={
			transform:'scale('+a+','+a+') translateY('+a*10+'px)',
			'transform-origin':'50% 100%'
		}
	}else{
		title={
			transform:'scale('+a+','+a+')',
			'transform-origin':'50% 0%'
		}
	}
	return {
		base:{
			transform:'scale('+a+','+a+')',
			'transform-origin':'50% 50%'
		},
		title:title
	}
}
module.exports=a;